﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace PatientInformationExtract.MainInterface.Views
{
    /// <summary>
    /// Interaction logic for RichTextBoxToolBarItem.xaml
    /// </summary>
    public partial class RichTextBoxToolBarItem : UserControl
    {
        public string ItemContentText { set { this.content.Text = value; } get { return this.content.Text; } }
        public Brush ItemColor { set { this.color.Background = value; } get { return this.color.Background; } }
        public double ItemColorWidth { set { this.color.Width = value; } get { return this.color.Width; } }
        public double ItemBlankWidth 
        {
            set 
            { 
                this.blank1.Width = value;
                this.blank2.Width = value;
            }
            get { return this.blank1.Width; }
        }
        public double ItemContentSize { set { this.content.FontSize = value; } get { return this.content.FontSize; } }
        public RichTextBoxToolBarItem()
        {
            InitializeComponent();
        }
    }
}
